var appData = getApp().globalData,
app = getApp();
Page({
  data: {
    info: [],
    bgco: '#f6f6f6'
  },
  tap: e => {
    console.log(e)
  },

  onShow: function () {
    var list = []
    if (appData.receive) {
      for (let i = 0; i < appData.receive.length; i++) {
        list.push({
          id: i,
          img: appData.receive[i].avatar,
          name: appData.receive[i].nick,
          total: appData.receive[i].total,
          date: appData.receive[i].date.split(' ')[0],
        })
      }
      this.setData({ bgco: '#fff' })
    }
    this.setData({ info: list })
  },
})